package com.ocom.common.request.payhandle;

import com.ocom.common.vo.devicehttp.MachMealDataVo;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class CashPayRequest {
    @Min(1L)
    @NotNull(message = "companyId 不能为空")
    Long companyId;
    @NotBlank(message = "machNo 不能为空")
    String machNo;
    @NotBlank(message = "tradeNo 不能为空")
    String tradeNo;
    @Min(1)
    @NotNull(message = "amount 不能为空")
    Integer amount;
    @NotBlank(message = "authCode 不能为空")
    String authCode;

    @NotNull(message = "type 不能为空")
    Integer type;

    @Min(1)
    Integer consType=1;

    //5订餐 订餐日期
    String consDate;
    //订餐餐段
    Integer consMeal;
    //订餐消费点
    Integer consPoint;

    //1 消费 3点餐  5订餐
    Integer consState=1;
    //餐品列表 预留
    List<MachMealDataVo> mealData ;
}
